<?php

namespace App\Model;


class ShopsModel extends BaseModel{

    protected $table = 'shops';

    const STATUS_1 = 1;
    const STATUS_2 = 2;
    const STATUS_TEXT = [
        self::STATUS_1 => '<span class="el-tag">正常</span>',
        self::STATUS_2 => '<span class="el-tag el-tag--danger">关闭</span>',
    ];
    const ONLINE_1 = 1;
    const ONLINE_2 = 2;
    const ONLINE_TEXT = [
        self::ONLINE_1 => '<span class="el-tag">在线</span>',
        self::ONLINE_2 => '<span class="el-tag el-tag--danger">离线</span>',
    ];
    protected $fillable = [
        'id','name','mac','status','created_at','num','online','fd'
    ];
}
